package com.dd.ent.car.ui.home.templet.choice;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;

import com.dd.ent.car.R;
import com.nostra13.universalimageloader.core.ImageLoader;

/**
 * Created by dengqu on 2017/2/21.
 */

public class ChoiceShortVideoView extends FrameLayout{
    private ImageView mVideoPoster;
    public ChoiceShortVideoView(Context context) {
        super(context);
        init(context);
    }

    public ChoiceShortVideoView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }
    private void init(Context context) {
        View root = LayoutInflater.from(context).inflate(R.layout.choiceness_short_video_item, this, true);
        mVideoPoster= (ImageView) root.findViewById(R.id.item_icon);
        ImageLoader.getInstance().displayImage("http://www2.autoimg.cn/newsdfs/g20/M11/F0/85/220x124_0_autohomecar__wKjBw1iqwwmAN3HdAAIwQEQaVVc552.jpg",mVideoPoster);
    }
}
